package org.grew.openEntity.repository;

import org.grew.openEntity.po.logic.ColumnObj;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: open_entity
 * @author: todd
 * @create: 2019-01-05 21:38
 * @description: ${description}
 */
@Repository
public interface ColumnRepository extends JpaRepository<ColumnObj,Long> {

    @Query(value = "from ColumnObj c where c.columnName like %:columnName%")
    List<ColumnObj> findColumnObjByColumnName(@Param("columnName")String columnName);

}
